Action

public final class Action extends AsyncCallbackAction<R>

An action to take in StartCaptureSessionCallback.

Constructors

Link copied to clipboard
public void StartCaptureSessionCallback.Action(Consumer<StartCaptureSession.Response> consumer)

Functions

Link copied to clipboard
public void cancel()
Tells the browser that the capture session request should be canceled.
Link copied to clipboard
public final boolean isClosed()
Returns true if this action is closed.
Link copied to clipboard
public void selectSource(Browser browser, AudioCaptureMode audioCaptureMode)
Tells the browser to use the given browser as the capture source.
public void selectSource(CaptureSource source, AudioCaptureMode audioCaptureMode)
Tells the browser to use the given capture source.
public void selectSource(Browser browser, AudioCaptureMode audioCaptureMode, NotificationVisibility notificationVisibility)
public void selectSource(CaptureSource source, AudioCaptureMode audioCaptureMode, NotificationVisibility notificationVisibility)
Overloaded version of selectSource that allows specifying whether to show a notification during capture.
Link copied to clipboard
public void showSelectSourceDialog()
Tells the browser to display the default dialog for choosing the capture source.